package com.hzh.cusviewdemo.Music;

public class Constant {

    //service名
    public static final String SERVICE_NAME = "com.example.vinyl.service.MediaPlayService";//服务的名称为包名+类名
    //播放状态
    public static final String STATUS = "status";

    public static final int STATUS_STOP = 0; //停止状态
    public static final int STATUS_PLAY = 1; //播放状态
    public static final int STATUS_PAUSE = 2; //暂停状态
    public static final int STATUS_RUN = 3;  //   运行状态
    public static final int STATUS_LOAD_OK = 4;  //  歌曲加载完成状态
    public static final int STATUS_UPDATE_KEY_TIME = 5;  //  更新卡密时间
    public static final int STATUS_CLICK_SEARCH_RESULT_PLAY = 6;  //  点击搜索结果播放音乐
    public static final int STATUS_UPDATE_MENU_LIST = 7;  //  更新首页的歌单列表
    public static final int STATUS_REFRESH_LIKE_FROM_PLAY_PAGE = 8;  //  刷新喜欢
    public static final int STATUS_REFRESH_LIKE_FROM_SEARCH_LIST = 9;  //  刷新喜欢

    public static final String COMMAND = "cmd";

    public static final int COMMAND_INIT = 1; //初始化命令
    public static final int COMMAND_PLAY = 2; //播放命令
    public static final int COMMAND_PAUSE = 3; //暂停命令
    public static final int COMMAND_STOP = 4; //停止命令
    public static final int COMMAND_PROGRESS = 5; //改变进度命令
    public static final int COMMAND_RELEASE = 6; //退出程序时释放

    //播放模式
    public static final int PLAYMODE_SEQUENCE = 0;
    public static final int PLAYMODE_RANDOM = 1;
    public static final int PLAYMODE_SINGLE_REPEAT = 2;

    public static final String PLAYMODE_SEQUENCE_TEXT = "顺序播放";
    public static final String PLAYMODE_RANDOM_TEXT = "随机播放";
    public static final String PLAYMODE_SINGLE_REPEAT_TEXT = "单曲循环";

    //SharedPreferences key 常量
    public static final String KEY_ID = "id";
    public static final String KEY_TITLE = "title";
    public static final String KEY_PATH = "path";
    public static final String KEY_IS_PLAY = "isPlay";
    public static final String KEY_PIC = "pic";
    public static final String KEY_LRC_LIST = "lrc_list";
    public static final String KEY_MODE = "mode";
    public static final String KEY_LIST = "list";
    public static final String KEY_LIST_ID = "list_id";
    public static final String KEY_CURRENT = "current";
    public static final String KEY_CURRENT_SENTENCE = "current_sentence";
    public static final String KEY_DURATION = "duration";
    public static final String KEY_NAME = "name";
    public static final String KEY_SONGER = "songer";
    public static final String KEY_NOW_PLAY_MENU = "key_now_play_menu"; // 当前播放的歌单


    public static final String IS_LOOK_LRC = "is_look_lrc";  // 0 只看歌词 1 也看转圈
    public static final String CURRENT_LRC_FONT_SIZE = "current_lrc_font_size";  // 当前歌词字体大小
    public static final String NORMAL_LRC_FONT_SIZE = "normal_lrc_font_size";  // 普通歌词字体大小
    public static final String IS_AGREE_WARMING = "IS_AGREE_WARMING";  // 是否同意免责声明， 0 同意 1 不同意
    public static final String SAVE_USER_KEY = "save_user_key"; // 用户验证之后可以使用的key
    public static final String IS_FIRST_USE_APP = "is_first_use_app"; // 是否是第一次进入本app，是的话要初始化我喜欢和全部歌曲两个歌单 0 是第一次 1 不是

    public static final String IS_PLAYING_MUSIC = "is_playing_music";  // 0 没有播放音乐 1 正在播放音乐

}
